package com.atguigu.order.feign;

import com.atguigu.order.feign.impl.EduServiceImpl;
import com.atguigu.servicebase.entity.vo.CourseOrderVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @title: VideoService
 * @Author danghailiang
 * @Date: 2022/10/10 11:08
 * @Version 1.0
 */
@Api("微服务-课程服务")
@FeignClient(value = "service-edu", fallback = EduServiceImpl.class)
@Component
public interface EduCourseService {
    /**
     * 获取课程信息
     * @param id
     * @return
     */
    @ApiOperation("订单：课程信息")
    @PostMapping("/eduservice/admin/course/getCourseInfoOrder/{id}")
    public CourseOrderVo getCourseInfoOrder(@PathVariable String id);
}
